import { COUNTER_DECREMENT, COUNTER_INCREMENT, USER_MODIFY } from './constants'
export const decrement = (payload) => ({
  type: 'COUNTER_DECREMENT', //一般大写
  payload,
})

export const increment = (payload) => ({
  type: 'COUNTER_INCREMENT',
  payload,
})

// !#3 创建了一个 actionCreator
export const modifyUser = (payload) => ({
  type: 'USER_MODIFY',
  payload
})

